package com.woniuxy.daos;

import com.woniuxy.entitys.TbComplaint;
import com.woniuxy.entitys.TbComplaintExample;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbComplaintDao {
    long countByExample(TbComplaintExample example);

    int deleteByExample(TbComplaintExample example);

    int deleteByPrimaryKey(Integer tcid);

    int insert(TbComplaint record);

    int insertSelective(TbComplaint record);

    List<TbComplaint> selectByExample(TbComplaintExample example);

    TbComplaint selectByPrimaryKey(Integer tcid);

    int updateByExampleSelective(@Param("record") TbComplaint record, @Param("example") TbComplaintExample example);

    int updateByExample(@Param("record") TbComplaint record, @Param("example") TbComplaintExample example);

    int updateByPrimaryKeySelective(TbComplaint record);

    int updateByPrimaryKey(TbComplaint record);

    List<TbComplaint> selComplaints();

    int updateFlag(Integer tcid);

    List<TbComplaint> selByCondition(@Param("beginTime") Date beginTime,@Param("endTime") Date endTime);

    int updateComplaintFlag(Integer tcid);

    List<TbComplaint> selByCidAndFlag(@Param("cid") Integer cid);
}